//
//  ContractInfoGrabRootDelegate.m
//  Jyxt
//
//  Created by 刘日 on 17/5/17.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "ContractInfoGrabRootDelegate.h"
#import "CommonTableViewCell.h"
#import "PhotosTableViewCell.h"

@interface ContractInfoGrabRootDelegate()

@property (nonatomic , strong) NSArray *identifiers;

@end

@implementation ContractInfoGrabRootDelegate

- (NSArray *)identifiers{
    if (!_identifiers) {
        _identifiers = @[@"PhotosTableViewCell",@"FormInputTableViewCell"];
    }
    return _identifiers;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return indexPath.section == 0 ? [PhotosTableViewCell calculateHeight] : 48;
}

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 20;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 1;
}

@end
